import random
basket=["香蕉","苹果","鸡蛋","面包","葡萄","南果梨","牛奶"]
print("第1问：这个篮子里面有：")
for item in basket:
    print(item)

print("第2问：篮子里面还剩（去掉非水果）：")
basket.remove("鸡蛋")
basket.remove("面包")
basket.remove("牛奶")
for item in basket:
    print(item)
print("第3问：再给篮子里面添加两种水果（草莓，菠萝）")
basket.append("草莓")
basket.append("菠萝")
for item in basket:
    print(item)
print("第4问：从篮子里面随机保留两种水果：")
random_basket = random.sample(basket,2)
for item in random_basket:
    print(item)